package com.delong.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.delong.model.app.Company;

public interface CompanyMapper {

	void addElement(Company element);

	List<Company> selectCategoryByName(@Param(value = "companyName") String name, @Param("pageno") int pageno,
			@Param("limit") int limit);

	Company selectCompanyById(@Param(value = "id") int id);

	int changeCompany(Company element);

	int changeStatus(@Param(value = "status") int status, @Param("id") int id);

	List<Company> selectALLCompany();
	
	
	int selectCount(@Param(value = "companyName") String name);
}
